<?php
/**
 * Created by PhpStorm.
 * User: sen
 * Date: 16/7/26
 * Time: 下午7:27
 */
namespace app\controllers;
use yii\web\Controller;
use yii\helpers\Url;

class PopularizeController extends Controller{

    //加载view
    public function actionIndex(){
        $view = \Yii::$app->view;
        $view->params['menuitemid']=71;
        $baseUrl=Url::home(true);
        $userid = \Yii::$app->user->id;
        return $this->render('index',['model' => $userid,'baseUrl'=>$baseUrl]);
    }

}